package qf.wlh.com.oneprisdent;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class SettingActivity extends AppCompatActivity implements View.OnClickListener {
    private TextView tvSuggestion;
    private TextView tvCleanning;
    private ImageView ivSetting;
    private TextView tvCleanningContent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        tvSuggestion = ((TextView) findViewById(R.id.activity_setting_suggestion));
        tvCleanning = ((TextView) findViewById(R.id.activity_setting_cleaning));
        ivSetting = ((ImageView) findViewById(R.id.activity_setting_setting));
        tvCleanningContent = ((TextView) findViewById(R.id.activity_setting_cleaning_content));
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.activity_setting_cleaning:
                tvCleanningContent.setText("0.0MB");
                break;
            case R.id.activity_setting_suggestion:
                startActivity(new Intent(SettingActivity.this,SuggestionActivity.class));
                break;
            case R.id.activity_setting_setting:
                finish();
                break;
        }
    }
}
